<div id=system_statistics>
<h2> System statistics </h2>
<p> Number of questions: <%= @number_of_questions %> </p>
<p> Number of questionnaires: <%= @number_of_questionnaires %> </p>
<p> Number of categories: <%= @number_of_categories %> </p>
</div>
<div id=user_statistics>
<h2> User statistics </h2>
<table width="600" border="2" cellspacing="2" cellpadding="5">
  <tr>
    <th> User </th>
    <th> Number of questions </th>
    <th> Number of questionnaires </th>
  </tr>
<% @user_statistics.each do |user, number_of_questions, number_of_questionnaires| %>
  <tr>
    <td> <%= user %> </td>
    <td> <%= number_of_questions %> </td>
    <td> <%= number_of_questionnaires %> </td>
  </tr>
<% end%>
</table>
</div>

<div id=links_section>
  <%= link_to 'List of questionnaires', questionnaires_path %>
  <%= link_to 'List of questions', questions_path %>
  <%= link_to 'List of categories', categories_path %>
</div>